<?php
$intPtype		= $objRequest->getParam('pty',-1);
$objPlogs 		= new Plogs();	
$objPlace		= new Place();
$arrPlace		= null;
if($intPtype == -1 && isset($_COOKIE['DASHBOARD_PLACE_TAB'])) {
	$intPtype 	= $_COOKIE['DASHBOARD_PLACE_TAB'];
}
if($intPtype < 2 ) {	
	$arrPlace	= $objPlace->getAllForDaskboard();	
	$intPtype	= 1;
}else {
	$arrPlace	= $objPlogs->getPlogsByUserId($AppUI->id,0,20);
}
$this->view->intPtype	= $intPtype;
$this->view->arrPlace	= $arrPlace;
?>
